package developer.zyk.global.user.helper;

import developer.zyk.global.user.bo.config.ModelConfig;
import developer.zyk.global.user.bo.config.UserConfig;
import developer.zyk.global.user.dao.entity.ChatUserDO;
import developer.zyk.global.user.dao.mappers.ChatUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhangyongkang
 * @time 2025/5/15 20:14
 * @description
 */
@Component
public class ConfigHelper {
    private static ChatUserMapper chatUserMapper;

    @Autowired
    public void setChatUserDO(ChatUserMapper chatUserMapper) {
        ConfigHelper.chatUserMapper = chatUserMapper;
    }


    private static String getConfigBy(Long userId) {
        ChatUserDO chatUserDO = chatUserMapper.selectById(userId);
        return chatUserDO.getSystemConfig();
    }
}
